<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>去重</title>
</head>
<body>
    
    <script type="module">
        // import {uniqueES5, uniqueES6} from './js/14_unique/unique.js'
        
        // 第1次手写
        // import {uniqueES5, uniqueES6} from './js/14_unique/unique1.js'

        import {uniqueES5, uniqueES6} from './js/14_unique/unique8.js'

        let arr = [10, 1, 8, 6, 3, 6, 4, 2, 8, 7, 10]
        console.log(`es5: ${uniqueES5(arr)}`)
        console.log(`es6: ${uniqueES6(arr)}`)
    </script>
</body>
</html>